Netshell.controller("AppCtrl", ["$scope", "$rootScope", function($scope, $rootScope){
	$scope.SideModel = {
		IsVisible: false,
		ViewUrl: null,
		Close: function(){
			this.IsVisible = false;
			this.ViewUrl = null;
		}
	};
	$rootScope.$on('$locationChangeSuccess', function(a,b,c,d,e) {
		//console.log(a,b,c,d,e);
	});
}]);
Netshell.controller("ProjectsCtrl", ["$scope", function($scope){
	$scope.cmdCreate = function(){ $scope.$parent.sidebarVisible = !$scope.$parent.sidebarVisible; };
}]);
Netshell.controller("ProjectsCreateCtrl", ["$scope", "Api", function($scope, Api){
	$scope.project = Api.Project;
	$scope.cmdCreate = function(){ };
}]);